Skip to content

feat(extension): add browser extension native messaging foundation#24

Merged
apzuk3 merged 1 commit intomainfrom
feat/browser-extension-foundation
Mar 24, 2026
Merged

feat(extension): add browser extension native messaging foundation#24
apzuk3 merged 1 commit intomainfrom
feat/browser-extension-foundation

Conversation

@apzuk3
Copy link
Copy Markdown
Contributor

@apzuk3 apzuk3 commented Mar 24, 2026

Summary

  • scaffold a single-source browser extension package with WXT for Chromium and Firefox, including a background bridge that uses native messaging and websocket reconnect logic
  • add native messaging host mode to the desktop app and implement stdio message handling that fetches extension connection info from the local focusd web server
  • wire /extension/bootstrap and authenticated /extension/ws routes on the fixed local server (:50533) with per-session API key generation and constant-time validation
  • update native messaging manifest installation to generate a launcher script that starts the app in native host mode for both Chrome and Firefox manifests

Validation

  • go test ./internal/extension ./internal/nativemessaging
  • go test ./... (root package fails in this environment because frontend/dist is not present for go:embed)

Introduce a single-source browser extension scaffold and wire native messaging to issue websocket connection credentials with per-session API key checks.
@apzuk3 apzuk3 temporarily deployed to Production release March 24, 2026 14:06 — with GitHub Actions Inactive
@apzuk3 apzuk3 merged commit 33bf332 into main Mar 24, 2026
1 check passed
@apzuk3 apzuk3 deleted the feat/browser-extension-foundation branch March 24, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant